package cn.wzvtc.demo.model.entity;

import cn.wzvtc.demo.base.MongoBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;


/**
 * @description 用户填写的表单实体
 * @author Supyo
 */
@EqualsAndHashCode(callSuper = true)
@Document(collection = "user_form")
@Data
public class UserFormEntity extends MongoBaseEntity {


    /**
     * 模板表编号
     */
    @Field("form_id")
    private String formId;

    /**
     * 用户编号
     */
    @Field("user_id")
    private String userId;

    /**
     * 表单的名字
     */
    private String title;

    /**
     * 表单的描述
     */
    private String desc;


    /**
     * 组件的详细内容
     */
    private List<UserFormComponent> components;

}
